package com.etone.smartAudit.dto.fieldCase;

import com.etone.smartAudit.dto.FileDTO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.List;

/**
 * @author: sovy
 * @date: 2020/8/19
 * @description:
 */
@AllArgsConstructor
@NoArgsConstructor
@SuperBuilder
@Data
@ApiModel(value = "FieldCaseDTO", description = "案例库表单")
public class FieldCaseDTO implements Serializable {

    @ApiModelProperty("案例领域id")
    @NotNull
    private Integer fieldId;

    @ApiModelProperty("案例领域名称")
    @NotNull
    private String fieldName;


    @ApiModelProperty("案例名称")
    @NotEmpty
    private String name;

    @ApiModelProperty("备注|说明|介绍")
    @NotEmpty
    private String remark;

    @ApiModelProperty("封面图")
    @NotNull
    private FileDTO cover;

    @ApiModelProperty("详情")
    @NotEmpty
    private String detail;

    @NotNull
    private List<FileDTO> files;

    @ApiModelProperty("问题发现相关项目")
    private String questionItem;

    @ApiModelProperty("贡献人")
    private String contributor;

    @ApiModelProperty("联系人")
    private String contact;

    @ApiModelProperty("联系方式")
    private String contactTel;
}
